package com.coco.group.service;


import com.coco.group.pojo.TbUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient( value = "coco-user")
@RequestMapping("/user")
public interface UserService {

    @GetMapping("/findOne/{id}")
    TbUser findOne(@PathVariable("id") Long id);

}
